<div class="fbox" id="add_start">
    <div class="title">添加收藏</div>
    <div class="cc">
    <form class="sform" id="addForm" name="addForm" method="post" action="{@/my/addurl}">
    <fieldset class="inline">
        <div class="field">
            <label>链接地址</label>
            <input type="text" name="url" id="addput_url" class="textput" />
        </div>
        <div class="field">
            <label>收藏标题</label>
            <input type="text" name="title" id="addput_title" class="textput" />
        </div>
        <div class="field">
            <label>放入目录</label>
            <div id="mycata">
                <select id="addput_cata" name="cata">
                    <option value="0">默认收藏夹</option>
<?php
foreach ($this->uclist as $item) {
echo <<<EOT
<option value="{$item['id']}">{$item['name']}</option>
EOT;
}
?>
                </select>
                <span style="padding-left:20px"><a href="javascript:;" id="createdir" style="font-size:12px;">新建收藏夹</a></span>
            </div>
            <div id="newcata" style="display:none">
            <input type="text" name="newcata_name" id="newcata_name" class="textput" style="width:220px;" />
            <input type="button" value="确定" class="bnt-small" id="adddir" />
            <input type="button" value="取消" class="bnt-small" id="canceldir" />
            </div>
        </div>
        <div class="field">
            <label>&nbsp;</label>
            <input type="submit" value="加入收藏" class="bnt-mid" />
        </div>
    </fieldset>
    </form>
    </div>
</div>

<div class="fbox" id="add_finish" style="display:none;">
    <div class="title">完成收藏</div>
    <div class="cc">
    <div class="suc-msg">
        <div class="suc">收藏成功</div>
        <p id="s_title"></p>
        <p id="s_url"></p>
    </div>
    <form class="sform" id="compForm" name="compForm" method="post" action="{@/my/addurl}">
    <input type="hidden" name="uid" id="uid" />
    <fieldset>
        <div class="field">
            <label class="tips">添加备注/收藏理由</label>
            <textarea name="intro" id="addput_intro"></textarea>
        </div>
        <div class="field">
            <input type="submit" value="完成" class="bnt-mid" />
        </div>
    </fieldset>
    </form>
    </div>
</div>


<div class="fbox" id="edit_box" style="display:none;">
    <div class="title">编辑收藏</div>
    <div class="cc">
    <form class="sform" id="editForm" name="editForm" method="post" action="{@/my/editurl}">
    <input type="hidden" name="uid" id="editput_uid" />
    <fieldset class="inline">
        <div class="field">
            <label>链接地址</label>
            <input type="text" name="url" id="editput_url" class="textput" />
        </div>
        <div class="field">
            <label>链接标题</label>
            <input type="text" name="title" id="editput_title" class="textput" />
        </div>
        <div class="field">
            <label class="tips">备注/收藏理由</label>
            <textarea name="intro" id="editput_intro" class="areaput"></textarea>
        </div>
        <div class="field">
            <input type="submit" value="完成" class="bnt-mid" />
        </div>
    </fieldset>
    </form>
    </div>
</div>